import { CloudOutlined, PayCircleOutlined, UserOutlined  } from '@ant-design/icons';
import Home from '@@/views/Home';
import User from '@@/views/Home/components/User';
import Business from '@@/views/Home/components/Business';
import MeetingRoom from '@@/views/Home/components/MeetingRoom';

import Login from '@@/views/Login';

const configs: IRoutesConfig[] = [
  {
    path: '/manage',
    component: Home,
    routes: [
      // {
      //   path: '/manage/meetingRoom/:opr',
      //   title: '会议室管理',
      //   component: () => null,
      //   routes: [
      //     {
      //       path: '/manage/meetingRoom/list',
      //       title: '会议室列表',
      //       exact: true,
      //       component: MeetingRoom,
      //     },
      //     {
      //       path: '/manage/meetingRoom/detail',
      //       title: '会议室详情',
      //       exact: true,
      //       component: () => <div>会议室详情</div>
      //     }
      //   ]
      // },
      {
        path: '/manage/meetingRoom',
        title: '会议室管理',
        exact: true,
        icon: <CloudOutlined />,
        component: MeetingRoom,
      },
      {
        path: '/manage/business',
        exact: true,
        title: '意向商家管理',
        icon: <PayCircleOutlined />,
        component: Business
      },
      {
        path: '/manage/user',
        exact: true,
        title: '用户管理',
        icon: <UserOutlined />,
        component: User
      }
    ]
  }, {
    path: '/login',
    exact: true,
    component: Login
  }
]

export default configs;
